home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 3 / Amiga Format CD03 (1996-07-04)(Future Publishing)(GB)(Track 1 of 6)[!][issue 1996-08].iso / pd / magicwb / install < prev    next >
Text File  |  1996-05-20  |  16KB  |  421 lines

  1. failat 21
  2.  
  3. if not exists XEN-Icons
  4.   echo "*n Please change current directory to that of MagicWB *n or start the installation from the Workbench!*n"
  5.   quit
  6. endif
  7.  
  8. echo "*n*e[1;32m _________________________________________________________________________"
  9. echo " *e[43m                                                                         *e[0m"
  10. echo " *e[0;32;43m              Welcome to the INSTALLATION of MagicWB v1.0*e[1m                *e[0m"
  11. echo " *e[1;4;43m                                                                         *e[0m"
  12. echo "*n*n This Installation will automatically install *e[32mMagicWB*e[0m to your SYS:"
  13. echo " directory. Don't be afraid; the only things that will be replaced"
  14. echo " (overwritten) by this installation are the old (and ugly-looking) Icons"
  15. echo " from Commodore. These old Icons will be replaced by far better-looking"
  16. echo " Icons (called XEN-Icons) from this *e[32mMagicWB*e[0m-Package. For this is the whole"
  17. echo " philosophy behind this package, it is quite natural that the old Icons"
  18. echo " MUST be replaced (beside this, you do have the old Icons by Commodore on"
  19. echo " your original Installation Disks. Therefore you won't lose anything!"
  20. echo " If you don't like the XEN-Icons - what I really cannot believe - then you"
  21. echo " can still replace them by the old ones).*n"
  22. echo " Second, this installation will install TWO new FONTS in your Fonts-Drawer"
  23. echo " called 'XEN' and 'XHelvetica'.*n"
  24. echo " Third, your font.prefs in the ENVARC:SYS directory will be changed to use"
  25. echo " the two new installed fonts (you can of course reconfigure these settings"
  26. echo " to fit your own personal taste; NOTHING important will be deleted).*n"
  27. echo noline "   [Return]"
  28. set > nil: Return ?
  29. echo "*e[1;1H*e[J"
  30. echo "*n Fourth, your palette.ilbm will be changed to fit the XEN-Icons: You will"
  31. echo " need at least 8 colors. This new palette will NOT change the standard"
  32. echo " colors that you are probably using at the moment. These first four"
  33. echo " standard colors are Gray, Black, White and Blue. So, you will have the"
  34. echo " same standard-looking Workbench with its original colors (again, nothing"
  35. echo " will get lost)."
  36. echo "*n IMPORTANT: The only thing you have to do is to change SCREENMODE-PREFS to"
  37. echo " a proportional resolution with 8 COLORS (e.g. HiRes-Interlaced 8 Colors)"
  38. echo " after this installation is finished!*n"
  39. echo " Finally, ONE Background-Pattern will be installed in the SYS:Prefs/Patterns"
  40. echo " directory (will be created). By default this pattern is the 'Marble_CLASSIC'"
  41. echo " pattern. After this installation you can manually copy all patterns or just"
  42. echo " your desired ones to this directory and configure them via the"
  43. echo " WBPattern-Prefs (only 3.x users) or the program 'NickPrefs' (for 2.x users;"
  44. echo " to be found in the 'MagicWB/Patterns/NickPrefs' drawer of this package).*n"
  45. echo " That's all! You can now proceed with this installation and in a few minutes"
  46. echo " you will be the lucky user of *e[32mMagicWB*e[0m! This installation will be"
  47. echo " interactive, which means that you will be asked certain questions where"
  48. echo " you can influence this installation.*n"
  49. echo noline " Start the installation? "
  50.  
  51. set > nil: InpVar ?
  52.  
  53. if $InpVar eq "ja"
  54.   skip Start
  55. endif
  56.  
  57. if $InpVar eq "j"
  58.   skip Start
  59. endif
  60.  
  61. if $InpVar eq "y"
  62.   skip Start
  63. endif
  64.  
  65. if $InpVar eq "yes"
  66.   skip Start
  67. endif
  68.  
  69. echo "*n*e[32m Installation aborted! I hope I see you again..."
  70. quit
  71.  
  72.  
  73. lab Start
  74.  
  75. echo "*e[1;1H*e[J"
  76. echo " Installation in progress...*n"
  77.  
  78.  
  79.  
  80. echo noline " Installing XEN-Icons to SYS:System..."
  81. list > ram:MWB SYS:System/#?.info lformat "copy > NIL: XEN-Icons/System/%s SYS:System"
  82. failat 21
  83. execute > NIL: ram:MWB
  84. if exists SYS:System/DiskCopy.info
  85.   delete SYS:System/DiskCopy.info  ; Icon was redundant, without function!
  86. endif
  87. if exists SYS:System/CLI.info
  88.   delete SYS:System/CLI.info  ; Icon was redundant.
  89. endif
  90. echo ".............*e[33mDONE*e[0m"
  91.  
  92.  
  93. echo noline " Installing XEN-Icons to SYS:Utilities..."
  94. list > ram:MWB SYS:Utilities/#?.info lformat "copy > NIL: XEN-Icons/Utilities/%s SYS:Utilities"
  95. failat 21
  96. execute > NIL: ram:MWB
  97. echo "..........*e[33mDONE*e[0m"
  98.  
  99.  
  100. echo noline " Installing XEN-Icons to SYS:Tools..."
  101. list > ram:MWB SYS:Tools/#?.info lformat "copy > NIL: XEN-Icons/Tools/%s SYS:Tools"
  102. failat 21
  103. execute > NIL: ram:MWB
  104. echo "..............*e[33mDONE*e[0m"
  105.  
  106.  
  107. echo noline " Installing XEN-Icons to SYS:Tools/Commodities..."
  108. list > ram:MWB SYS:Tools/Commodities/#?.info lformat "copy > NIL: XEN-Icons/Tools/Commodities/%s SYS:Tools/Commodities"
  109. failat 21
  110. execute > NIL: ram:MWB
  111. echo "..*e[33mDONE*e[0m"
  112.  
  113.  
  114. if exists SYS:Devs/DataTypes
  115. echo noline " Installing XEN-Icons to SYS:Devs/DataTypes..."
  116. list > ram:MWB SYS:Devs/DataTypes/#?.info lformat "copy > NIL: XEN-Icons/Devs/DataTypes/def_DataType.info %s%s"
  117. failat 21
  118. execute > NIL: ram:MWB
  119. copy > NIL: XEN-Icons/Devs/DataTypes.info SYS:Devs
  120. echo ".....*e[33mDONE*e[0m"
  121. endif
  122.  
  123.  
  124. echo noline " Installing XEN-Icons to SYS:Devs/DOSDrivers..."
  125. list > ram:MWB SYS:Devs/DOSDrivers/#[a-z].info lformat "copy > NIL: XEN-Icons/Devs/DOSDrivers/def_DOSDriver.info %s%s"
  126. failat 21
  127. execute > NIL: ram:MWB
  128. list > ram:MWB SYS:Devs/DOSDrivers/#?0.info lformat "copy > NIL: XEN-Icons/Devs/DOSDrivers/def_DOSDriver0.info %s%s"
  129. execute > NIL: ram:MWB
  130. list > ram:MWB SYS:Devs/DOSDrivers/#?1.info lformat "copy > NIL: XEN-Icons/Devs/DOSDrivers/def_DOSDriver1.info %s%s"
  131. execute > NIL: ram:MWB
  132. list > ram:MWB SYS:Devs/DOSDrivers/#?2.info lformat "copy > NIL: XEN-Icons/Devs/DOSDrivers/def_DOSDriver2.info %s%s"
  133. execute > NIL: ram:MWB
  134. list > ram:MWB SYS:Devs/DOSDrivers/#?3.info lformat "copy > NIL: XEN-Icons/Devs/DOSDrivers/def_DOSDriver3.info %s%s"
  135. execute > NIL: ram:MWB
  136. list > ram:MWB SYS:Devs/DOSDrivers/#?4.info lformat "copy > NIL: XEN-Icons/Devs/DOSDrivers/def_DOSDriver4.info %s%s"
  137. execute > NIL: ram:MWB
  138. list > ram:MWB SYS:Devs/DOSDrivers/#?5.info lformat "copy > NIL: XEN-Icons/Devs/DOSDrivers/def_DOSDriver5.info %s%s"
  139. execute > NIL: ram:MWB
  140. copy > NIL: XEN-Icons/Devs/DOSDrivers.info SYS:Devs
  141. echo "....*e[33mDONE*e[0m"
  142.  
  143.  
  144. echo noline " Installing XEN-Icons to SYS:Devs/Keymaps..."
  145. list > ram:MWB SYS:Devs/Keymaps/#?.info lformat "copy > NIL: XEN-Icons/Devs/Keymaps/def_Keymap.info %s%s"
  146. failat 21
  147. execute > NIL: ram:MWB
  148. copy > NIL: XEN-Icons/Devs/Keymaps.info SYS:Devs
  149. echo ".......*e[33mDONE*e[0m"
  150.  
  151.  
  152. echo noline " Installing XEN-Icons to SYS:Devs/Monitors..."
  153. list > ram:MWB SYS:Devs/Monitors/#?.info lformat "copy > NIL: XEN-Icons/Devs/Monitors/def_Monitor.info %s%s"
  154. failat 21
  155. execute > NIL: ram:MWB
  156. copy > NIL: XEN-Icons/Devs/Monitors.info SYS:Devs
  157. echo "......*e[33mDONE*e[0m"
  158.  
  159.  
  160. echo noline " Installing XEN-Icons to SYS:Devs/Printers..."
  161. list > ram:MWB SYS:Devs/Printers/#?.info lformat "copy > NIL: XEN-Icons/Devs/Printers/def_Printer.info %s%s"
  162. failat 21
  163. execute > NIL: ram:MWB
  164. copy > NIL: XEN-Icons/Devs/Printers.info SYS:Devs
  165. echo "......*e[33mDONE*e[0m"
  166.  
  167.  
  168. echo noline " Installing XEN-Icons to SYS:Prefs..."
  169. list > ram:MWB SYS:Prefs/#?.info lformat "copy > NIL: XEN-Icons/Prefs/%s SYS:Prefs"
  170. failat 21
  171. execute > NIL: ram:MWB
  172. copy > NIL: XEN-Icons/Prefs/env-archive/sys/def_Drawer.info TO SYS:Prefs/Presets.info
  173. echo "..............*e[33mDONE*e[0m"
  174.  
  175.  
  176. echo noline " Installing XEN-DEFAULT-Icons to ENVARC:..."
  177. copy > NIL: XEN-Icons/Prefs/Env-Archive/Sys/~(Palette3.0|WBPattern.prefs) ENVARC:Sys all
  178. echo "........*e[33mDONE*e[0m"
  179.  
  180.  
  181. echo noline " Updating Drawer-Icons in SYS:..."
  182. list > ram:MWB SYS: dirs lformat "if exists SYS:%n.info *ncopy > NIL: XEN-Icons/Prefs/Env-Archive/Sys/def_Drawer.info TO SYS:%n.info *nendif*n"
  183. execute > NIL: ram:MWB
  184. delete > NIL: ram:MWB
  185. echo "..................*e[33mDONE*e[0m"
  186.  
  187.  
  188. version > NIL: exec.library 39
  189. if warn
  190.   skip Continue
  191. endif
  192. echo "*n Kickstart 3.x detected:"
  193. echo noline " Installing Palette.prefs and WBPattern.prefs for Kickstart 3.x..."
  194. delete > NIL: envarc:sys/sysfont.prefs ; file redundant for 3.x
  195. delete > NIL: envarc:sys/wbfont.prefs  ; file redundant for 3.x
  196. copy > NIL: XEN-Icons/Prefs/Env-Archive/Sys/Palette3.0 ENVARC:Sys/Palette.prefs
  197. copy > NIL: XEN-Icons/Prefs/Env-Archive/Sys/WBPattern.prefs ENVARC:Sys
  198. echo "..*e[33mDONE*e[0m*n"
  199.  
  200.  
  201. lab Continue
  202.  
  203. echo " Installing XEN-SPECIAL-Icons:"
  204. echo noline "     Installing Preset-Default-Icon to SYS:Prefs/Presets..."
  205. copy > NIL: XEN-Icons/SPECIAL/Preset.info SYS:Prefs/Presets
  206. echo ".........*e[33mDONE*e[0m"
  207.  
  208.  
  209. echo noline "     Installing RAM-Icon to S:RAM.info......"
  210. copy > NIL: XEN-Icons/SPECIAL/RAM.info SYS:S
  211. if exists SYS:S/User-Startup
  212.   search > NIL: SYS:S/User-Startup SYS:S/RAM.info
  213.   if warn
  214.     join XEN-Icons/SPECIAL/RAM-Script SYS:S/User-Startup TO RAM:User-Startup
  215.     copy RAM:User-Startup SYS:S
  216.     delete > NIL: RAM:User-Startup
  217.   endif
  218. else
  219.   copy > NIL: XEN-Icons/SPECIAL/RAM-Script TO SYS:S/User-Startup
  220. endif
  221. echo "........................*e[33mDONE*e[0m"
  222.  
  223.  
  224. if exists SYS:Disk.info
  225.   echo noline "*n Installing HardDisk-Icon to SYS:..."
  226.   copy > NIL: XEN-Icons/SPECIAL/HD.info SYS:Disk.info
  227.   echo "................................*e[33mDONE*e[0m*n"
  228. else
  229.   lab Path
  230.   echo noline "*n Please enter the PATH where the HardDisk-Icon should*n be installed (i.e. 'DH0:'): "
  231.   set > NIL: Path ?
  232.   if > NIL: not exists $Path
  233.     echo " Wrong path, path does not exist! Try again...*n"
  234.     skip back path
  235.   endif
  236.   echo noline " Installing HardDisk-Icon to $Path..."
  237.   copy > NIL: XEN-Icons/SPECIAL/HD.info TO RAM:T/Disk.info
  238.   copy > NIL: RAM:T/Disk.info TO $Path
  239.   delete > NIL: RAM:T/Disk.info
  240.   echo "..*e[33mDONE*e[0m*n"
  241. endif
  242.  
  243.  
  244. lab HardDisk
  245.  
  246. echo noline " Do you want to have the HardDisk-Icon installed to other partitions? "
  247. set > nil: HardDisk ?
  248. echo "*e[1;1H*e[J"
  249. if $HardDisk eq "ja"
  250.   skip InstallHardDisk
  251. endif
  252. if $HardDisk eq "j"
  253.   skip InstallHardDisk
  254. endif
  255. if $HardDisk eq "y"
  256.   skip InstallHardDisk
  257. endif
  258. if $HardDisk eq "yes"
  259.   skip InstallHardDisk
  260. endif
  261. skip Continue
  262.  
  263. lab InstallHardDisk
  264. echo noline "*N Please enter the DEVICE NAME of your desired partition (i.e. 'DH0:'): "
  265. set > nil: Device [Return]
  266. set > nil: Device ?
  267. if not exists $Device
  268.   echo " Wrong device, $Device does not exist! Try again..."
  269.   skip back InstallHardDisk
  270. endif
  271. echo noline "*n Installing HardDisk-Icon to $Device..."
  272. copy > NIL: XEN-Icons/SPECIAL/HD.info TO RAM:T/Disk.info
  273. copy > NIL: RAM:T/Disk.info TO $Device
  274. delete > NIL: RAM:T/Disk.info
  275. echo "..*e[33mDONE*e[0m*n"
  276. skip back HardDisk
  277.  
  278.  
  279. lab Continue
  280. echo "*e[1;1H*e[J"
  281. echo noline "*n IMPORTANT: Do you have a SYQUEST (removable cartridge disk drive)? "
  282. set > nil: Syquest ?
  283. if $Syquest eq "ja"
  284.   skip InstallSyquest
  285. endif
  286. if $Syquest eq "j"
  287.   skip InstallSyquest
  288. endif
  289. if $Syquest eq "y"
  290.   skip InstallSyquest
  291. endif
  292. if $Syquest eq "yes"
  293.   skip InstallSyquest
  294. endif
  295. skip Continue
  296.  
  297. lab InstallSyquest
  298. echo noline "*n Please enter the DEVICE NAME of your Syquest (for example 'DH1:'): "
  299. set > NIL: Dev [Return]
  300. set > NIL: Dev ?
  301. if not exists $Dev
  302.   echo " Wrong device, $Dev does not exist! Try again..."
  303.   skip back InstallSyquest
  304. endif
  305. echo noline "*n Installing Syquest-Icon to $Dev..."
  306. copy > NIL: XEN-Icons/SPECIAL/Syquest.info TO RAM:T/Disk.info
  307. copy > NIL: RAM:T/Disk.info TO $Dev
  308. delete > NIL: RAM:T/Disk.info
  309. echo "...*e[33mDONE*e[0m"
  310. wait 6
  311.  
  312. lab Continue
  313.  
  314. echo "*e[1;1H*e[J"
  315. echo "*n Now, you are going to decide which Icon you want to have installed for your"
  316. echo " Preferences-Drawer. As this is probably one of the most important drawers,"
  317. echo " it will get its own special Icon. You have the choice between TWO different"
  318. echo " Prefs-Icons: A small one (whose size is more compatible with the original"
  319. echo " Prefs-Icon by Commodore, or a very big one (having more details, of course)."
  320. echo " If you are not sure, I suggest you take the SMALL one. The BIG one is more"
  321. echo " convenient for resolutions of 800x600 or higher. It's up to you:"
  322. lab Retry
  323. echo noline "*n Which Prefs-Drawer-Icon should be installed (enter BIG or SMALL)? "
  324. set > NIL: Prefs ?
  325. if $Prefs eq "SMALL"
  326.   Echo noline "*n Installing SMALL Prefs-Icon..."
  327.   copy > NIL: XEN-Icons/SPECIAL/Prefs.info TO SYS:
  328.   echo "..*e[33mDONE*e[0m"
  329. else
  330.   if $Prefs eq "BIG"
  331.     Echo noline "*n Installing BIG Prefs-Icon..."
  332.     copy > NIL: XEN-Icons/SPECIAL/Prefs2.info TO SYS:Prefs.info
  333.     echo "..*e[33mDONE*e[0m"
  334.   else
  335.     echo " You MUST enter either *"SMALL*" or *"BIG*"! Try again..."
  336.     skip back Retry
  337.   endif
  338. endif
  339.  
  340.  
  341. if exists SYS:Tools/HDBackup.info
  342.   echo " Program 'HDBackup' detected:"
  343.   echo noline " Installing XEN-Icon for 'HDBackup' in SYS:Tools..."
  344.   copy > NIL: XEN-Icons/SPECIAL/HDBackup.info TO SYS:Tools
  345.   echo "..*e[33mDONE*e[0m"
  346. endif
  347.  
  348. wait 4
  349.  
  350. echo "*e[1;1H*e[J"
  351. echo noline "*n Installing fonts 'XEN' and 'XHelvetica' to FONTS:..."
  352. copy > NIL: Fonts/#? TO FONTS: all
  353. echo "..*e[33mDONE*e[0m"
  354.  
  355.  
  356. echo noline "*N*n*n Installing PATTERN 'Marble_CLASSIC' to SYS:Prefs/Patterns*n (drawer will be created)..."
  357. set PattPath SYS:Prefs/Patterns
  358. if not exists $PattPath
  359.   makedir $PattPath
  360. endif
  361. version >NIL: exec.library 39
  362. if warn
  363.   copy > NIL: Patterns/Patterns2.0/Marble_CLASSIC TO $PattPath
  364. else
  365.   copy > NIL: Patterns/Marble_CLASSIC TO $PattPath
  366. endif
  367. echo "..*e[33mDONE*e[0m"
  368.  
  369.  
  370. Echo "*n*N*n*n*n The installation is now successfully finished."
  371. echo "*n*n     [Return]"
  372. set > nil: Return ?
  373.  
  374. echo "*e[1;1H*e[J"
  375. echo "*n Finally some important information:*n"
  376. echo "*n There are some things you immediately have to do after this installation"
  377. echo " is finished."
  378. echo "*n- You have to change the SCREENMODE-Preferences to a proportional resolution"
  379. echo "  with at least 8 COLORS! Proportional resolutions are for example: 640x480,"
  380. echo "  640x512, 800x600, 1024x768, 1280x1024 etc. But NOT a resolution like"
  381. echo "  640x256 (=MedRes Pal) or similar resolutions where the horizontal pixels"
  382. echo "  are nearly twice as much than the vertical amount of pixels. With these"
  383. echo "  'unproportional' resolutions the Icons and Fonts are being distorted. So,"
  384. echo "  you have to use a proportional resolution to enjoy *e[32mMagicWB*e[0m as the author"
  385. echo "  has planned it to be!"
  386. echo "  And you MUST select at least an 8 COLOR Workbench!"
  387. echo "*n  Comment: I have decided NOT to manipulate the screenmode.prefs as AGA has"
  388. echo "  come up with a huge diversity of screenmodes, many of whom won't display"
  389. echo "  properly on VGA-MultiSync-Monitors. As this package should also run under"
  390. echo "  ECS and OCS it is nearly impossible to find a common screenmode which will"
  391. echo "  satisfy everybody. So I leave it to the user to select the screenmode."
  392. echo "*n*n     [Return]"
  393. set > nil: Return ?
  394. echo "*e[3F*n- Second, you can find the probably most wanted Pattern 'Marble_CLASSIC'"
  395. echo "  in the $PattPath directory. This is the only pattern that has"
  396. echo "  been installed to save diskspace. There are plenty of other patterns in"
  397. echo "  the MagicWB/Patterns directory (altogether 40 patterns!) that you can copy"
  398. echo "  to $PattPath if required.*n"
  399. echo "  If you are user of the OS2.0 or OS2.1 you will have to install the program"
  400. echo "  NickPrefs to use the Patterns of *e[32mMagicWB*e[0m. Please consult the documentation."
  401. echo "*n- Programmers should take a look into the MagicWB/XEN-Icons/SPECIAL drawer!"
  402. echo "  Here you can find Icons for your programs that have logically not been"
  403. echo "  installed with this installation: AmigaGuide.info & ReadMe.info."
  404. echo "*n*n     [Return]"
  405. set > nil: Return ?
  406. echo "*e[1;1H*e[J"
  407. echo "*n*N*n Thank you for supporting the author of *e[32mMagicWB*e[0m by your registration, making"
  408. echo " future versions of *e[32mMagicWB*e[0m possible. Always remember:"
  409. echo "*n*n*e[1;32m          ______________________________________________________"
  410. echo "                                                                 "
  411. echo "            A PRODUCT WORTH USING IS ALSO WORTH BEING SUPPORTED  "
  412. echo "           *e[1;31m_____________________________________________________ "
  413. echo "*n*N                   MagicWB © 1993 by Martin Huttenloher"
  414. echo "*n                        - Released as SHAREWARE -"
  415. echo "*n*n*n*n     [Return]"
  416. set > nil: Return ?
  417. echo "*e[1;1H*e[J"
  418. echo "*n*n*n Now have much fun with *e[32mMagicWB*e[0m!*n*n To enjoy MagicWB immediately you have to reset your AMIGA first,*n so that all configurations will be set properly!*n*n Bye, bye...*n*N"
  419. echo "*n*n     [Return]"
  420. set > nil: Return ?
  421. quit